It should be considered that the cost of improving the existing code in an application may indeed be greater than the cost of rewriting it17. 应该考虑一下,改进程序中已存在的代码的成本,确实要比重写它的成本高17。
While code generators understand a little bit about the target language, they are usually not full parsers and cannot take the target language into account without rewriting a complete compiler. 尽管代码生成器可以理解一点儿目标语言的知识,但是它们通常都不是完整的语法分析器,不重新编写一个完整的编译器是无法全面考虑目标语言的。
Most developers working with code, either for analysis or for rewriting, will start with the Workspace level. 大多数与代码打交道的开发者或者是分析代码,或者是重新编写代码都需要从工作空间层开始。
Don't comment out code you mean to delete. I have known people to comment out blocks of code they were rewriting and check them in commented out. 不要把应删掉的代码注释掉了事我知道有些人重写提交代码的时候,把旧代码注释掉。
By writing clear comments and technical specs, they let other programmers understand their code, which means other programmers can use and work with their code instead of rewriting it. 他们也能够写出清晰的用户手册,于是最终用户可以理解他们的代码是做什么用的,明白了他们的工作的价值。